use gdk_threads_add_idle so that the handler acquires the lock since it
authorPaolo Borelli <pborelli@katamail.com>
Mon, 8 Sep 2008 14:29:26 +0000 (14:29 +0000)
committerPaolo Borelli <pborelli@src.gnome.org>
Mon, 8 Sep 2008 14:29:26 +0000 (14:29 +0000)
2008-09-08  Paolo Borelli  <pborelli@katamail.com>

* gtk/gtkfilechooserentry.c (install_start_autocompletion_idle):
use gdk_threads_add_idle so that the handler acquires the lock
since it calls gtk functions.

svn path=/trunk/; revision=21321

ChangeLog
gtk/gtkfilechooserentry.c

index 0cf1e46eb150ef65af03eef3f6ba209963aee4dc..a732cbb6be8a176d079f7011e98dc8129627e90b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-08  Paolo Borelli  <pborelli@katamail.com>
+
+       * gtk/gtkfilechooserentry.c (install_start_autocompletion_idle):
+       use gdk_threads_add_idle so that the handler acquires the lock
+       since it calls gtk functions.
+
 2008-09-08  Tor Lillqvist  <tml@novell.com>
 
        * configure.in (debug_default): Correct help string for
index 1ff7a79d375ae5d961bf3d38d6c0d7f5da09315a..a40e429fff1e31509f42be0bc68666ba2ce1f411 100644 (file)
@@ -1545,7 +1545,7 @@ install_start_autocompletion_idle (GtkFileChooserEntry *chooser_entry)
   if (chooser_entry->start_autocompletion_idle_id != 0)
     return;
 
-  chooser_entry->start_autocompletion_idle_id = g_idle_add (start_autocompletion_idle_handler, chooser_entry);
+  chooser_entry->start_autocompletion_idle_id = gdk_threads_add_idle (start_autocompletion_idle_handler, chooser_entry);
 }
 
 #ifdef G_OS_WIN32